package com.github.chirspan.xaas.log.feign;

import com.github.chirspan.xaas.core.constant.XaasConstants;
import com.github.chirspan.xaas.log.model.ApiLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * ************************
 * <p></p>
 * *************************
 *
 * @author chenpan
 * @date 2021/1/19 12:35
 */
@FeignClient(value = XaasConstants.API_LOG_PROVIDER)
public interface ILogClient {

    @PostMapping("/apiLog/event")
    void saveLog(@RequestBody ApiLog apiLog);
}
